package org.znxs.znxsframe;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.znxs.znxsframe.init.BIMQInitMain;

// 使用redis 需要删除排除加载的类型
//@SpringBootApplication(exclude = {RedisAutoConfiguration.class})
//@MapperScan("org.znxs.znxsframe.mapper")
@EnableScheduling   // 定时任务
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)  // aop 代理
@SpringBootApplication
@EnableRedisHttpSession
public class ZnxsBIApplication {
    public static void main(String[] args) {
        // 初始化消息队列
        BIMQInitMain.main(args);
        // 初始化消息队列
        SpringApplication.run(ZnxsBIApplication.class, args);
    }

}
